package team.star.werespos.service;


import team.star.werespos.model.entity.User;

import java.util.List;

/**
 * UserService interface<br/>
 *
 * @author hdonghong
 * @since  2018/04/30
 */
public interface UserService {

    User insertOne(User user);

    List<User> listUsers();

    void updateById(User user);

    void deleteById(User user);

    User findByUsername(String username);

    User getOne(int uid);

    void updatePassword(String oldPwd, String newPwd);
}
